<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OnListBoxChangedModAlert.aspx.cs" Inherits="ModAlert_OnListBoxChangedModAlert"
	Title="OnListBoxChangedModAlert - ModWatch" %>
<asp:Content ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>
<asp:Content ContentPlaceHolderID="PageContent" Runat="Server">

	<h2>OnListBoxChangedModAlertExtender Control</h2>

	<p>
		The OnListBoxChangedModAlertExtender control checks for changes
		when the selected index of a list box has been changed.
	</p>

	<p>
		&lt;asp:ListBox AutoPostBack="true" SelectionMode="Multiple" ID="lbTest" runat="server">
		<br />
		&nbsp;&nbsp;&nbsp;
		&lt;asp:ListItem Value="1">Value 1&lt;/asp:ListItem>
		<br />
		&nbsp;&nbsp;&nbsp;
		&lt;asp:ListItem Value="2">Value 2&lt;/asp:ListItem>
		<br />
		&nbsp;&nbsp;&nbsp;
		&lt;asp:ListItem Value="3">Value 3&lt;/asp:ListItem>
		<br />
		&lt;/asp:ListBox>
		<br />
		&lt;mw:OnListBoxChangedModAlertExtender TargetControlID="lbTest" runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />
		
	</p>
	
	<p>
		Change the value of this text box, and select a 
		<br />
		different value from the list to test this ModAlert control.
		<br />
		<asp:TextBox ID="txtTest" runat="server" />
		<mw:TextBoxModWatcherExtender TargetControlID="txtTest" runat="server" />

		<br /><br />

		<asp:ListBox AutoPostBack="true" SelectionMode="Multiple" ID="lbTest" runat="server">
			<asp:ListItem Value="1">Value 1</asp:ListItem> 
			<asp:ListItem Value="2">Value 2</asp:ListItem> 
			<asp:ListItem Value="3">Value 3</asp:ListItem>
		</asp:ListBox>
		<mw:OnListBoxChangedModAlertExtender TargetControlID="lbTest" runat="server"
			NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />

		<asp:Button Text="Save Changes" OnClick="btnSave_Click" ID="btnSave" runat="server" />

		<br /><br />
		
		Page last served: <asp:Label ID="lblLastServed" runat="server"></asp:Label>
		<br />
		Change detected on server? <asp:Label ID="lblServerChange" runat="server"></asp:Label>
	</p>

</asp:Content>
